package com.bw.my.mvvm.user;


import com.bw.mvvm.mvvm.view.BaseActivity;
import com.bw.my.BR;
import com.bw.my.R;
import com.bw.my.databinding.ActivityRegBinding;
import com.bw.my.mvvm.user.viewmodel.RegViewModel;

import org.greenrobot.eventbus.Subscribe;

public class RegActivity extends BaseActivity<ActivityRegBinding, RegViewModel> {


    @Override
    public int bindLayout() {
        return R.layout.activity_reg;
    }

    @Override
    public int initVerable() {
        return BR.reg;
    }

    @Subscribe()
    public void getEventBus(String msg){
        if (msg.equals("注册成功")){
            finishPage();
        }
    }

}
